<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery.funkyUI.js"></script>
		<script type="text/javascript">
			function block()
			{
				var obj = $("form:nth-child(1)");
				alert($("#name").val());
				
			}
			
			function wraptest()
			{
				$("p").wrap("<div class='nihao'></div>").insertBefore($("#sex"));
			}
			
			function valtest()
			{
				alert($("select").val("two"));
			}
			
		</script>
	</head>

	<body>
		<%=session.getAttribute("account")%>
		<div class="nihao" >
			hao
		</div>
		<form action="member/loginout.action" method="get">
		<input type="text" maxlength="10" size="10" id="name" class="textInpt" width="200"/>
		<input type="text" maxlength="3" size="3" id="sex" class="textInpt"/>
		<br/>
		<select>
			<option value="one">nihao1</option>
			<option value="two">nihao2</option>
			<option value="three">nihao3</option>
		</select>
		<br/>
		
		<input type="button" value="block" onclick="block()" />
		<input type="button" value="wraptest" onclick="wraptest()" />
		<input type="button" value="valtest" onclick="valtest()" />
		<input type="submit" value="loginout" id="loginout"/>
		<p>jingdong</p>
		</form>
	</body>
</html>
